package edu.zut.cs.network;

import java.util.Arrays;

public class BubbleSort2
{
    public static void main(String[] args)
    {
        int [] arr={89,23,56,45,78,29,12,3};
        System.out.println("排序前数组为：");
        Arrays.sort(arr);

        for(int num:arr)
        {
            System.out.print(num+" ");
        }

        /*
        for(int i=0;i<arr.length;i++)
        {
            System.out.print(arr[i]+" ");
        }
        */
    }
}
